package me.zhulu.drools.second;

/**
 * Created with IntelliJ IDEA.
 * User: herosea
 * Date: 14-7-14
 * Time: 下午8:18
 * To change this template use File | Settings | File Templates.
 */
import org.drools.RuleBase;
import org.drools.RuleBaseFactory;

/**
 * RuleBaseFacatory 单实例RuleBase生成工具
 * @author quzishen
 */
public class RuleBaseFacatory {
    private static RuleBase ruleBase;

    public static RuleBase getRuleBase(){
        return null != ruleBase ? ruleBase : RuleBaseFactory.newRuleBase();
    }
}
